import request from '@/utils/request'

export function login(params) {
  return request({
    url: 'api/authenticate',
    method: 'post',
    data: params
  }, true, false)
}

export function register(params) {
  return request({
    url: 'api/register',
    method: 'post',
    data: params
  })
}

export function getInfo() {
  return request({
    url: 'api/userInfo',
    method: 'get'
  })
}
